﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="rar.aspx.cs" Inherits="Editor_include_rar" %>

<!DOCTYPE html PUBLIC "-//W3C//Dtd XHTML 1.0 transitional//EN" "http://www.w3.org/tr/xhtml1/Dtd/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>永远在一起论坛 文件上传</title>
    <script language="javascript" type="text/javascript">
        function ReturnValue(){	
		var sFromUrl = document.form1.d_fromurl.value;
		var sMiaoShu = document.form1.d_miaoshu.value;		
		var sHTML = '<a href="'+sFromUrl+'" >"'+sMiaoShu+'"</a>';			
		if (sFromUrl.length<10){sHTML='';}
		window.returnValue = sHTML;
		window.close();
}
	</script>
	<base target="_self">
</head>	
	<body bgcolor="#e1e1e1">
		<form id="form1" method="post" runat="server">
				<fieldset style="WIDTH: 312px; HEIGHT: 128px"><legend>RAR文件上传</legend>
					<table id="Table1" cellspacing="0" cellpadding="2" width="300" border="0">
						<tr>
							<td colspan="5" height="5"></td>
						</tr>
						<tr>
							<td width="7"></td>
							<td align="right" width="54">描述:</td>
							<td width="5"></td>
							<td width="*"><INPUT id="d_miaoshu" style="WIDTH: 180px" type="text" size="30" name="d_miaoshu" runat="server">
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="d_miaoshu"
                                    ErrorMessage="*"></asp:RequiredFieldValidator></td>
							<td width="7"></td>
						</tr>
						<tr>
							<td width="7"></td>
							<td align="right" width="54">网络:</td>
							<td width="5"></td>
							<td width="*"><INPUT id="d_fromurl" style="WIDTH: 200px" type="text" size="30" value="http://" name="d_fromurl"></td>
							<td width="7"></td>
						</tr>
						<tr>
							<td width="7"></td>
							<td align="right" width="54">本地:</td>
							<td width="5"></td>
							<td width="*">
                                &nbsp;<asp:FileUpload ID="File1" runat="server" Width="125px" />
								<asp:button id="btnUpLoad" runat="server" Text="上传" Height="18px" OnClick="btnUpLoad_Click"></asp:button></td>
							<td width="7"></td>
						</tr>
						<tr>
							<td align="center" colSpan="5" height="5"><FONT face="宋体"><INPUT id="ok" onclick="ReturnValue()" type="button" value="确定">&nbsp;
									<INPUT type="button" onclick="window.close();" value="取消"></FONT></td>
						</tr>
					</table>
				</fieldset>
		</form>
	</body>
</html>